package com.ityuwen.mengyagushi.account.util;

import com.ityuwen.mengyagushi.account.mapper.UserAccountDetailMapper;
import com.ityuwen.mengyagushi.account.mapper.UserAccountMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

@Component
public class DelayTaskClient {

    @Autowired
    private RedisTemplate redisTemplate;

    @Autowired
    private UserAccountMapper userAccountMapper;

    @Autowired
    private UserAccountDetailMapper detailMapper;

    public DelayTask getDelayTask(){
        return new DelayTask(redisTemplate, userAccountMapper, detailMapper);
    }
}
